home *** CD-ROM | disk | FTP | other *** search
/ CSi Master: Ableton Live 5 / CSi Master: Ableton Live 5.iso / pc / rsrc / defaults / interface / interface.cst / 00017_MI2.ls < prev    next >
Encoding:
Text File  |  2004-04-15  |  1.3 KB  |  69 lines

  1. on mouseDown
  2.   global textDispVisible,PSMdispVisible,Master,PSMtextVis,topicLetter, subtopicNumber,lineSelect,mediaChoice,mediaName,mediaField
  3.   
  4.   
  5.   put line lineSelect of field mediaField into mediaList
  6.   
  7.   if item 1 of mediaList = 2 then
  8.     put item 2 of mediaList into mediaName
  9.   end if
  10.   if item 3 of mediaList = 2 then
  11.     put item 4 of mediaList into mediaName
  12.   end if
  13.   
  14.   set master = "MI2"
  15.   
  16.   --  set the castNum of sprite 41 to the number of cast (mediaName && mediaChoice)
  17.   
  18.   set mediaChoice = 1.0
  19.   
  20.   global PSMdispVisible
  21.   
  22.   if not PSMdispVisible  then
  23.     openPSMdisp
  24.   end if
  25.   
  26.   PSMupdate
  27.   updateSTage
  28.   
  29.   global gMute, gFade
  30.   
  31.   if gMute = 0 then
  32.     repeat while the volume of sound 2 < (255 - 4)
  33.       set the volume of sound 2 to (the volume of sound 2 + 4)
  34.       updateStage
  35.       put the timer into time
  36.       repeat while the timer <= time
  37.         nothing
  38.       end repeat
  39.     end repeat
  40.     set the volume of sound 2 to 255
  41.     updateStage
  42.     set gFade = 0
  43.   end if
  44.   
  45.   ----------- AUTO OPEN TEXT DISPLAY
  46.   global gAutoOpenTextDisplay
  47.   if gAutoOpenTextDisplay = 1 then
  48.     set the visible of sprite 2 to true
  49.     global PSMtextVis
  50.     if PSMtextVis then
  51.       closePSMtext
  52.     else
  53.       openPSMtext
  54.     end if
  55.   end if
  56.   -------------------
  57.   
  58.   
  59. end
  60.  
  61.  
  62.  
  63. on mouseenter
  64.   ShowTextRoll "TextRoll-Pict"
  65. end
  66.  
  67. on mouseleave
  68.   HideTextRoll
  69. end